package org.student.quartz;

import java.io.Serializable;
import java.util.Date;
import java.util.Map;

import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.context.ApplicationContext;
import org.springframework.scheduling.quartz.QuartzJobBean;


/**
 * 项目名称:
 * 类名称: QuartzService
 * 类描述: 定时调度业务类
 * 创建人：严植培
 * 创建时间: 2011-9-1 下午08:48:12
 */
@SuppressWarnings("all")
public class QuartzService extends QuartzJobBean implements Serializable{

	@Override
	protected void executeInternal(JobExecutionContext jobContext)throws JobExecutionException {
		Map dataMap = jobContext.getJobDetail().getJobDataMap() ;
		ApplicationContext ctx = (ApplicationContext) dataMap.get("applicationContext") ;
		QuartzService service = (QuartzService) dataMap.get("quartzService") ;
		//System.out.println("定时调度:" + service == null) ;
		//System.out.println("上下文:" + ctx == null) ;
		System.out.println("定时调度" + new Date()) ;
	}
	
	public void test(){}

}
